<template>
  <el-select v-model="value" filterable placeholder="请选择">
    <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
      <el-avatar style="float:left; margin-top:3px;" :size="size" v-for="size in sizeList" :src="item.circleUrl" :key="size"></el-avatar>
      <span style="float:left">{{ item.label }}</span>
    </el-option>
  </el-select>
</template>

<script>
  export default {
    name: "searchMember",
    data() {
      return {
        options: [{
          value: '选项1',
          label: '黄金糕',
          circleUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
        }, {
          value: '选项2',
          label: '双皮奶',
          circleUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
        }, {
          value: '选项3',
          label: '蚵仔煎',
          circleUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
        }, {
          value: '选项4',
          label: '龙须面',
          circleUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
        }, {
          value: '选项5',
          label: '北京烤鸭',
          circleUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
        }],
        sizeList: ["small"],

        value: ''
      }
    }
  }
</script>

<style scoped>

</style>
